package com.yuyu.qingmangmall.auth.feign;

import com.yuyu.common.utils.R;
import com.yuyu.qingmangmall.auth.vo.SocialUser;
import com.yuyu.qingmangmall.auth.vo.UserLoginVo;
import com.yuyu.qingmangmall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("qingmangmall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegistVo registerVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo userLoginVo);

    @PostMapping("/member/member/oauth/login")
    R oauthLogin(@RequestBody SocialUser socialUser) throws Exception;
}
